package com.chen.spring.cloud.miniapp.api.feign.service;

import com.chen.spring.cloud.miniapp.api.feign.hystrix.WechatServiceHystrix;
import com.chen.vo.WxCode2Session;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "spring-cloud-service-admin",fallback = WechatServiceHystrix.class)
public interface WechatService {

    @RequestMapping(value = "/user/addUser")
    String addUser(@RequestParam(value = "wxCode2Session")WxCode2Session wxCode2Session);
}
